#include <iostream>
#include <vector>

using namespace ::std;
using std::vector;

int main() {
  vector<int> nums;
  int num;
  while (cin >> num) nums.push_back(num);
  decltype(nums.size()) mid = (nums.size() + 1) / 2;
  for (decltype(nums.size()) i = 0; i < mid; ++i)
    cout << (nums[i] + nums[nums.size() - 1 - i]) << " ";
  cout << endl;
  return 0;
}